Device and Method for Secure Connection

ABSTRACT

An electronic device is provided. The electronic device includes a first short-range communication module configured to execute short-range communication with a second electronic device, a security module configured to store security information, and a processor configured to receive, from the second electronic device, a pairing key that registers the electronic device as being linked to the second electronic device, transmit session key generation information to the second electronic device when authentication with the second electronic device is completed based on the pairing key, generate a session key based on the session key generation information, encrypt the security information based on the session key, and transmit the encrypted information to the second electronic device.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application claims the benefit under 35 U.S.C. §119(a) of a Koreanpatent application filed on Oct. 21, 2014 in the Korean IntellectualProperty Office and assigned Serial number 10-2014-0142627, the entiredisclosure of which is hereby incorporated by reference.

TECHNICAL FIELD

The present disclosure relates to a device and a method for a secureconnection. More particularly, the present disclosure relates to adevice and a method for a secure connection, which securely transmitssecurity information of a first electronic device to a second electronicdevice, so that services are conveniently executed using the secondelectronic device.

BACKGROUND

A Near field communication (NFC) service is currently operated in threetypes of modes, which are card emulation, peer to peer (P2P), andread/write. Out of the three mode types, the card emulation mode is usedfor NFC payment service.

In the card emulation mode, NFC payment services, such as, atransportation card payment service, a check card payment service, andthe like, may be executed using an electronic device by transmittingsecurity information stored in a security chip (an embedded secureelement (eSE) chip, a universal integrated circuit card (UICC) chip, ora host card emulation (HCE) chip) to an NFC reader through an NFC chip.

In the card emulation mode, communication between the security chip (aneSE chip, a UICC chip, or an HCE chip) and the NFC chip should bedirectly connected. For example, the security chip (an eSE chip, a UICCchip, or an HCE chip) should be connected with the NFC chip from theperspective of hardware (H/W) in one electronic device so that thesecurity information stored in the security chip is transmitted to theNFC reader through the NFC chip, or the security chip should beconnected with the NFC chip through a processor (application processor(AP)) in one electronic device.

When a user possesses a plurality of electronic devices, for example, asmart phone, a watch phone, and a tablet, a security chip (an embeddedsecure element (eSE) chip, a universal integrated circuit card (UICC)chip, or a host card emulation (HCE) chip) and a near fieldcommunication (NFC) chip required for NFC payment service should beincluded in each of the plurality of electronic devices. For example,when an eSE/UICC/HCU chip and an NFC chip for NFC payment service areincluded in only the smart phone, a user should proceed with paymentservice using the smart phone although the smart phone is connected withthe watch phone through Bluetooth.

Therefore, a need exists for a device and a method for a secureconnection, which securely transmits security information of a firstelectronic device to a second electronic device, so that services areconveniently executed using the second electronic device.

The above information is presented as background information only toassist with an understanding of the present disclosure. No determinationhas been made, and no assertion is made, as to whether any of the abovemight be applicable as prior art with regard to the present disclosure.

SUMMARY

Aspects of the present disclosure are to address at least theabove-mentioned problems and/or disadvantages and to provide at leastthe advantages described below. Accordingly, an aspect of the presentdisclosure is to provide a device and a method for a secure connection,which securely transmits security information of a first electronicdevice to a second electronic device, so that services are convenientlyexecuted using the second electronic device.

In accordance with an aspect of the present disclosure, an electronicdevice is provided. The electronic device includes a first short-rangecommunication module configured to execute short-range communicationwith a second electronic device, a security module configured to storesecurity information, and a processor configured to receive, from thesecond electronic device, a pairing key that registers the electronicdevice as being linked to the second electronic device, transmit sessionkey generation information to the second electronic device whenauthentication with the second electronic device is completed based onthe pairing key, generate a session key based on the session keygeneration information, encrypt the security information based on thesession key, and transmit the encrypted information to the secondelectronic device.

In accordance with another aspect of the present disclosure, anelectronic device is provided. The electronic device includes a firstshort-range communication module configured to execute short-rangecommunication with a first electronic device, a second short-rangecommunication module configured to execute short-range communicationwith a third electronic device, and a processor configured to transmit,when a pairing key that registers the first electronic device as beinglinked to the electronic device is received from a server device, thepairing key to the first electronic device, transmit session keygeneration information received from the first electronic device to theserver device, decode encrypted security information that is receivedfrom the first electronic device, based on a session key received fromthe server device, and transmit the decoded information to the thirdelectronic device.

In accordance with another aspect of the present disclosure, a serverdevice is provided. The server device includes a processor configured togenerate and store a pairing key for registering a first electronicdevice as being linked to an electronic device, based on uniqueinformation of the first electronic device received from the electronicdevice, and transmit the pairing key to the electronic device, andgenerate a session key identical to a session key of the firstelectronic device based on session key generation information of thefirst electronic device received from the electronic device, andtransmit the session key to the electronic device.

In accordance with another aspect of the present disclosure, a secureconnection method of an electronic device is provided. The secureconnection method includes receiving a pairing key that registers theelectronic device as being linked to a second electronic device from thesecond electronic device that is connected over a first short-rangecommunication, transmitting session key generation information to thesecond electronic device when authentication with respect to the secondelectronic device is completed based on the pairing key, and generatinga session key based on the session key generation information,encrypting security information through the session key, andtransmitting the encrypted information to the second electronic device.

In accordance with another aspect of the present disclosure, a secureconnection method of an electronic device is provided. The secureconnection method includes transmitting, when a pairing key thatregisters a first electronic device as being linked to the electronicdevice, is received from a server device, the pairing key to the firstelectronic device that is connected over a first short-rangecommunication, transmitting, to the server device, session keygeneration information received from the first electronic device, anddecoding, when a session key is received from the server device,encrypted security information that is received from the firstelectronic device, based on the session key, and transmitting thedecoded information to a third electronic device that is connected overa second short-range communication.

In accordance with another aspect of the present disclosure, a secureconnection method of a server device is provided. The secure connectionmethod includes generating and storing, when unique information of afirst electronic device is received from an electronic device, a pairingkey for registering the first electronic device as being linked to theelectronic device, based on the unique information of the firstelectronic device, and transmitting the pairing key to the electronicdevice, and generating, when session key generation information of thefirst electronic device is received from the electronic device, asession key identical to a session key of the first electronic devicebased on the session key generation information, and transmitting thesession key to the electronic device.

A secure connection device and method, according to various embodimentsof the present disclosure, securely provides security information of thefirst electronic device to a second electronic device, so that servicesare conveniently executed using the second electronic device.

Other aspects, advantages, and salient features of the disclosure willbecome apparent to those skilled in the art from the following detaileddescription, which, taken in conjunction with the annexed drawings,discloses various embodiments of the present disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other aspects, features, and advantages of certainembodiments of the present disclosure will be more apparent from thefollowing description taken in conjunction with the accompanyingdrawings, in which:

FIG. 1 illustrates a network environment according to variousembodiments of the present disclosure;

FIG. 2 is a block diagram of an electronic device according to variousembodiments of the present disclosure;

FIG. 3 is a block diagram of a programming module according to variousembodiments of the present disclosure;

FIG. 4 is a diagram illustrating a secure connection system according tovarious embodiments of the present disclosure;

FIG. 5 is a block diagram of a secure connection device according tovarious embodiments of the present disclosure;

FIGS. 6A and 6B are flowcharts illustrating a registration method for asecure connection according to various embodiments of the presentdisclosure; and

FIGS. 7A and 7B are flowcharts illustrating a secure connection methodaccording to various embodiments of the present disclosure.

Throughout the drawings, like reference numerals will be understood torefer to like parts, components, and structures.

DETAILED DESCRIPTION

The following description with reference to the accompanying drawings isprovided to assist in a comprehensive understanding of variousembodiments of the present disclosure as defined by the claims and theirequivalents. It includes various specific details to assist in thatunderstanding but these are to be regarded as merely exemplary.Accordingly, those of ordinary skill in the art will recognize thatvarious changes and modifications of the various embodiments describedherein can be made without departing from the scope and spirit of thepresent disclosure. In addition, descriptions of well-known functionsand constructions may be omitted for clarity and conciseness.

The terms and words used in the following description and claims are notlimited to the bibliographical meanings, but, are merely used by theinventor to enable a clear and consistent understanding of the presentdisclosure. Accordingly, it should be apparent to those skilled in theart that the following description of various embodiments of the presentdisclosure is provided for illustration purpose only and not for thepurpose of limiting the present disclosure as defined by the appendedclaims and their equivalents.

It is to be understood that the singular forms “a,” “an,” and “the”include plural referents unless the context clearly dictates otherwise.Thus, for example, reference to “a component surface” includes referenceto one or more of such surfaces.

By the term “substantially” it is meant that the recited characteristic,parameter, or value need not be achieved exactly, but that deviations orvariations, including for example, tolerances, measurement error,measurement accuracy limitations and other factors known to those ofskill in the art, may occur in amounts that do not preclude the effectthe characteristic was intended to provide.

In embodiments of the present disclosure, the expression “have”, “mayhave”, “include” or “may include” refers to existence of a correspondingfeature (for example, a numerical value, a function, an operation, orcomponents, such as elements), and does not exclude existence ofadditional features.

In embodiments of the present disclosure, the expression “A or B”, “atleast one of A or/and B”, or “one or more of A or/and B” may include allpossible combinations of the items listed. For example, the expression“A or B”, “at least one of A and B”, or “at least one of A or B” refersto all of (1) including at least one A, (2) including at least one B, or(3) including all of at least one A and at least one B.

The expression “a first”, “a second”, “the first”, or “the second” usedin various embodiments of the present disclosure may modify variouscomponents regardless of the order and/or the importance but does notlimit the corresponding components. The above expressions are usedmerely for the purpose of distinguishing an element from the otherelements. For example, a first user device and a second user deviceindicate different user devices although both of them are user devices.For example, a first element may be termed a second element, andsimilarly, a second element may be termed a first element withoutdeparting from the scope of the present disclosure.

When it is mentioned that one element (for example, a first element) is“(operatively or communicatively) coupled with/to or connected to”another element (for example, a second element), it should be construedthat the one element is directly connected to the another element or theone element is indirectly connected to the another element via yetanother element (for example, a third element). In contrast, it may beunderstood that when an element (for example, the first element) isreferred to as being “directly connected,” or “directly coupled” toanother element (second element), there are no element (for example, thethird element) interposed between them.

The expression “configured to” used in embodiments of the presentdisclosure may be exchanged with, for example, “suitable for”, “havingthe capacity to”, “designed to”, “adapted to”, “made to”, or “capableof” according to the situation. The term “configured to” may notnecessarily imply “specifically designed to” in hardware (H/W).Alternatively, in some situations, the expression “device configured to”may mean that the device, together with other devices or components, “isable to”. For example, the phrase “processor adapted (or configured) toperform A, B, and C” may mean a dedicated processor (for example, anembedded processor) only for performing the corresponding operations ora generic-purpose processor (for example, a central processing unit(CPU) or an application processor (AP)) that can perform thecorresponding operations by executing one or more software (S/W)programs stored in a memory device.

The terms used herein are merely for the purpose of describingparticular embodiments of the present disclosure and are not intended tolimit the scope of other embodiments. Unless defined otherwise, allterms used herein, including technical and scientific terms, have thesame meaning as those commonly understood by a person skilled in the artto which the present disclosure pertains. Such terms as those defined ina generally used dictionary are to be interpreted to have the meaningsequal to the contextual meanings in the relevant field of the art, andare not to be interpreted to have ideal or excessively formal meaningsunless clearly defined in embodiments of the present disclosure. In somecases, even the term defined in embodiments of the present disclosureshould not be interpreted to exclude embodiments of the presentdisclosure.

For example, the electronic device may include at least one of asmartphone, a tablet personal computer (PC), a mobile phone, a videophone, an electronic book (e-book) reader, a desktop PC, a laptop PC, anetbook computer, a personal digital assistant (PDA), a portablemultimedia player (PMP), a Moving Picture Experts Group phase 1 or phase2 (MPEG-1 or MPEG-2) audio layer 3 (MP3) player, a mobile medicalappliance, a camera, and a wearable device (for example, ahead-mounted-device (HMD), such as electronic glasses, electronicclothes, an electronic bracelet, an electronic necklace, an electronicappcessory, electronic tattoos, a smart watch, and the like).

According to various embodiments of the present disclosure, theelectronic device may be a smart home appliance. The home appliance mayinclude at least one of, for example, a television (TV), a digitalversatile disc (DVD) player, an audio, a refrigerator, an airconditioner, a vacuum cleaner, an oven, a microwave oven, a washingmachine, an air cleaner, a set-top box, a home automation control panel,a security control panel, a TV box (for example, Samsung HomeSync™,Apple TV™, or Google TV™), a game console (for example, Xbox™ andPlayStation™), an electronic dictionary, an electronic key, a camcorder,and an electronic photo frame.

According to an embodiment of the present disclosure, the electronicdevice may include at least one of various medical devices (for example,various portable medical measuring devices (a blood glucose monitoringdevice, a heart rate monitoring device, a blood pressure measuringdevice, a body temperature measuring device, and the like), a magneticresonance angiography (MRA), a magnetic resonance imaging (MRI), acomputed tomography (CT) machine, and an ultrasonic machine), anavigation device, a global positioning system (GPS) receiver, an eventdata recorder (EDR), a flight data recorder (FDR), a vehicleinfotainment devices, an electronic devices for a ship (for example, anavigation device for a ship, and a gyro-compass), avionics, securitydevices, an automotive head unit, a robot for home or industry, anautomatic teller's machine (ATM) in banks, point of sales (POS) in ashop, or internet device of things (for example, a light bulb, varioussensors, electric or gas meter, a sprinkler device, a fire alarm, athermostat, a streetlamp, a toaster, a sporting goods, a hot water tank,a heater, a boiler, and the like).

According to various embodiments of the present disclosure, theelectronic device may include at least one of a part of furniture or abuilding/structure, an electronic board, an electronic signaturereceiving device, a projector, and various kinds of measuringinstruments (for example, a water meter, an electric meter, a gas meter,and a radio wave meter). The electronic device according to variousembodiments of the present disclosure may be a combination of one ormore of the aforementioned various devices. Further, the electronicdevice according to an embodiment of the present disclosure is notlimited to the aforementioned devices, and may include a new electronicdevice according to the development of technology.

Hereinafter, an electronic device according to various embodiments ofthe present disclosure will be described with reference to theaccompanying drawings. As used herein, the term “user” may indicate aperson who uses an electronic device or a device (for example, anartificial intelligence electronic device) that uses an electronicdevice.

FIG. 1 illustrates a network environment according to variousembodiments of the present disclosure.

Referring to FIG. 1, an electronic device 101 in a network environment100, according to various embodiments of the present disclosure, will bedescribed.

Referring to FIG. 1, the electronic device 101 may include a bus 110, aprocessor 120, a memory 130, an input/output interface 150, a display160, and a communication interface 170. In an embodiment of the presentdisclosure, the electronic device 101 may omit at least some of theabove elements or may further include other elements.

The bus 110 may include, for example, a circuit for connecting theelements 110 to 170 each other, and transferring communication (forexample, a control message and/or data) between the elements.

The processor 120 may include one or more of a CPU, an AP, and acommunication processor (CP). The processor 120 may control, forexample, at least one other element of the electronic device 101 and/orprocess calculation or data processing associated with communication.

The memory 130 may include a volatile memory and/or a non-volatilememory. The memory 130 may store, for example, instructions or datarelated to at least one other element of the electronic device 101.According to an embodiment of the present disclosure, the memory 130 maystore S/W and/or a program 140. The program 140 may include, forexample, a kernel 141, middleware 143, an application programminginterface (API) 145, and/or an application program (or application) 147.At least some of the kernel 141, the middleware 143, and the API 145 maybe referred to as an operating system (OS).

The kernel 141 may control or manage system resources (for example, thebus 110, the processor 120, or the memory 130) used for executing anoperation or function implemented by other programs (for example, themiddleware 143, the API 145, or the application program 147).Furthermore, the kernel 141 may provide an interface through which themiddleware 143, the API 145, or the application program 147 may accessindividual elements of the electronic device 101 to control or managesystem resources.

The middleware 143 may serve as an intermediary such that, for example,the API 145 or the application program 147 communicate with the kernel141 to transmit/receive data. Furthermore, in regard to task requestsreceived from the application program 147, the middleware 143 mayperform a control (for example, scheduling or load balancing) for thetask requests using, for example, a method of assigning, to at least oneapplication, a priority for using the system resources (for example, thebus 110, the processor 120, or the memory 130) of the electronic device101.

The API 145 is an interface by which the applications 147 controlfunctions provided from the kernel 141 or the middleware 143, and mayinclude, for example, at least one interface or function (for example,instructions) for file control, window control, image processing, ortext control.

The input/output interface 150 may serve as an interface which maytransmit instructions or data input from a user or another externaldevice to other element(s) of the electronic device 101. Further, theinput/output interface 150 may output instructions or data received fromother element(s) of the electronic device 101 to a user or anotherexternal device.

The display 160 may include, for example, a liquid crystal display(LCD), a light emitting diode (LED) display, an organic LED (OLED)display, a micro electro mechanical system (MEMS) display, or anelectronic paper display. The display 160 may display various types ofcontents (for example, text, images, videos, icons, or symbols) forusers. The display 160 may include a touch screen, and may receive, forexample, a touch, gesture, proximity, or hovering input using anelectronic pen or a user's body part.

The communication interface 170 may establish communication between, forexample, the electronic device 101 and an external device (for example,a first external electronic device 102, a second external electronicdevice 104, or a server 106). For example, the communication interface170 may be connected to a network 162 through wireless or wiredcommunication so as to communicate with the external device (forexample, the second external electronic device 104 or the server 106).In another example, the communication interface 170 may be connected tothe first external electronic device 102 through a wirelesscommunication 164.

The wireless communication may use, for example, at least one of longterm evolution (LTE), LTE-advanced (LTE-A), code division multipleaccess (CDMA), wideband CDMA (WCDMA), universal mobiletelecommunications system (UMTS), wireless broadband (WiBro), and globalsystem for mobile communications (GSM), as a cellular communicationprotocol. The wired communication may include, for example, at least oneof a universal serial bus (USB), a high definition multimedia interface(HDMI), recommended standard 232 (RS-232), and a plain old telephoneservice (POTS). The network 162 may include at least one ofcommunication networks, such as a computer network (for example, a localarea network (LAN) or a wide area network (WAN)), the Internet, and atelephone network.

Each of the first external electronic device 102 and the second externalelectronic device 104 may be a device that is the same as or differentfrom the electronic device 101. According to an embodiment of thepresent disclosure, the server 106 may include a group of one or moreservers. According to various embodiments of the present disclosure,some or all of the operations executed in the electronic device 101 maybe executed by another electronic device or by a plurality of electronicdevices (for example, the first external electronic device 102 or thesecond external electronic device 104, or the server 106). According toan embodiment of the present disclosure, when the electronic device 101should perform a function or service automatically or by request, theelectronic device 101 may request another device (for example, the firstexternal electronic device 102 or the second external electronic device104, or the server 106) to perform at least some function related to thefunction or service, instead of or in addition to performing thefunction or service by itself. The other electronic device (for example,the first external electronic device 102 or the second externalelectronic device 104 or the server 106) may execute the requestedfunction or additional function, and may transmit a result thereof tothe electronic device 101. The electronic device 101 may provide therequested function or service based on the received result as it is orafter additionally processing the received result. To this end, forexample, cloud computing, distributed computing, or client-servercomputing technology may be used.

FIG. 2 is a block diagram of an electronic apparatus according tovarious embodiments of the present disclosure.

Referring to FIG. 2, an electronic device 201 may include, for example,a part or the entirety of the electronic device 101 illustrated inFIG. 1. The electronic device 201 may include at least one AP 210, acommunication module 220, a subscriber identification module (SIM) card224, a memory 230, a sensor module 240, an input device 250, a display260, an interface 270, an audio module 280, a camera module 291, a powermanagement module 295, a battery 296, an indicator 297, and a motor 298.

The AP 210 may control a plurality of H/W or S/W elements connectedthereto by driving an operating system or an application program, andmay perform a variety of data processing and calculations. The AP 210may be embodied as, for example, a system on chip (SoC). According to anembodiment of the present disclosure, the AP 210 may further include agraphics processing unit (GPU) and/or an image signal processor. The AP210 may include at least some of the elements (for example, a cellularmodule 221) illustrated in FIG. 2. The AP 210 may load instructions ordata, received from at least one other element (for example, anon-volatile memory), in a volatile memory to process the loadedinstructions or data, and may store various types of data in anon-volatile memory.

The communication module 220 may have a configuration equal or similarto the communication interface 170 of FIG. 1. The communication module220 may include, for example, a cellular module 221, a Wi-Fi module 223,a Bluetooth (BT) module 225, a GPS module 227, a near fieldcommunication (NFC) module 228, and a radio frequency (RF) module 229.

The cellular module 221 may provide a voice call, a video call, textmessage services, or Internet services through, for example, acommunication network. According to an embodiment of the presentdisclosure, the cellular module 221 may distinguish and authenticateelectronic devices 201 in a communication network using a subscriberidentification module (for example, the SIM card 224). According to anembodiment of the present disclosure, the cellular module 221 mayperform at least some of the functions which may be provided by the AP210. According to an embodiment of the present disclosure, the cellularmodule 221 may include a CP.

The Wi-Fi module 223, the BT module 225, the GPS module 227, and the NFCmodule 228 may include, for example, a processor for processing datatransmitted/received through a corresponding module. According to anyembodiment of the present disclosure, at least some (two or more) of thecellular module 221, the Wi-Fi module 223, the BT module 225, the GPSmodule 227, and the NFC module 228 may be included in one integratedchip (IC) or IC package.

The RF module 229 may transmit/receive, for example, a communicationsignal (for example, an RF signal). The RF module 229 may include, forexample, a transceiver, a power amp module (PAM), a frequency filter, alow noise amplifier (LNA) or an antenna. According to an embodiment ofthe present disclosure, at least one of the cellular module 221, theWi-Fi module 223, the BT module 225, the global navigation satellitesystem (GNSS) module 227, and the NFC module 228 may transmit andreceive RF signals through a separate RF module.

The SIM card 224 may include a card that contains a SIM and/or anembedded SIM, and may contain unique identification information (forexample, an IC card identifier (ICCID)) or subscriber information (forexample, an international mobile subscriber identity (IMSI)).

The memory 230 may include, for example, an embedded memory 232 or anexternal memory. The embedded memory 232 may include at least one of,for example, a volatile memory (for example, a dynamic random accessmemory (DRAM), a static RAM (SRAM), a synchronous DRAM (SDRAM), and thelike) and a non-volatile memory (for example, a one time programmableread only memory (OTPROM), a PROM, an erasable and programmable ROM(EPROM), an electrically erasable and programmable ROM (EEPROM), a flashmemory (for example, a NAND flash memory or a NOR flash memory), a harddrive, or a solid state drive (SSD).

The external memory 234 may further include a flash drive, for example,a compact flash (CF), a secure digital (SD), a micro-SD, a mini-SD, anextreme digital (xD), a memory stick, and the like. The external memory234 may be functionally and/or physically connected to the electronicdevice 201 through various interfaces.

The sensor module 240 may measure a physical quantity or detect anoperation state of the electronic device 201, and may convert themeasured or detected information into an electrical signal. The sensormodule 240 may include, for example, at least one of a gesture sensor240A, a gyro sensor 240B, an atmospheric pressure sensor 240C, amagnetic sensor 240D, an acceleration sensor 240E, a grip sensor 240F, aproximity sensor 240G, a color sensor 240H (for example, red, green, andblue (RGB) sensor), a biometric sensor 240I, a temperature/humiditysensor 240J, an illumination sensor 240K, and an ultra violet (UV)sensor 240M. Additionally or alternatively, the sensor module 240 mayinclude, for example, an E-nose sensor, an electromyography (EMG)sensor, an electroencephalogram (EEG) sensor, an electrocardiogram (ECG)sensor, an infrared (IR) sensor, an iris scanner, and/or a fingerprintsensor. The sensor module 240 may further include a control circuit forcontrolling at least one sensor included therein. In an embodiment ofthe present disclosure, the electronic device 201 may further include aprocessor configured to control the sensor module 240 as a part of orseparately from the AP 210, and may control the sensor module 240 whilethe AP 210 is in a sleep mode.

The input device 250 may include, for example, a touch panel 252, a(digital) pen sensor 254, a key 256, or an ultrasonic input device 258.The touch panel 252 may use at least one of, for example, a capacitivetype, a resistive type, an infrared type, and an ultrasonic type. Thetouch panel 252 may further include a control circuit. The touch panel252 may further include a tactile layer, and may provide a tactilereaction to a user.

The (digital) pen sensor 254 may include, for example, a recognitionsheet which is a part of the touch panel or a separate recognitionsheet. The key 256 may include, for example, a physical button, anoptical key or a keypad. The ultrasonic input device 258 may determinedata by detecting an ultrasonic wave generated by an input unit, using amicrophone (for example, a microphone 288) of the electronic device 201.

The display 260 (for example, the display 160) may include a panel 262,a hologram device 264 or a projector 266. The panel 262 may include anelement equal or similar to the display 160 of FIG. 1. The panel 262 maybe embodied to be, for example, flexible, transparent, or wearable. Thepanel 262 may also be configured to be integrated with the touch panel252 as a single module. The hologram device 264 may show a stereoscopicimage in the air by using interference of light. The projector 266 mayproject light onto a screen to display an image. The screen may belocated, for example, inside or outside the electronic device 201.According to an embodiment of the present disclosure, the display 260may further include a control circuit for controlling the panel 262, thehologram device 264, or the projector 266.

The interface 270 may include, for example, an HDMI 272, a USB 274, anoptical interface 276, or a D-subminiature (D-sub) 278. The interface270 may be included in, for example, the communication interface 170illustrated in FIG. 1. Additionally or alternatively, the interface 270may include, for example, a mobile high-definition link (MHL) interface,an SD card/multi-media card (MMC) interface, or an Infrared DataAssociation (IrDA) standard interface.

The audio module 280 may bilaterally convert, for example, a sound andan electrical signal. At least some elements of the audio module 280 maybe included in, for example, the input/output interface 150 illustratedin FIG. 1. The audio module 280 may process sound information input oroutput through, for example, a speaker 282, a receiver 284, earphones286, the microphone 288, and the like.

The camera module 291 is a device which is capable of photographing astill image and a video image. According to an embodiment of the presentdisclosure, the camera module 291 may include one or more image sensors(for example, a front sensor or a back sensor), a lens, an image signalprocessor (ISP) or a flash (for example, LED or xenon lamp).

The power management module 295 may manage, for example, power of theelectronic device 201. According to an embodiment of the presentdisclosure, the power management module 295 may include a powermanagement IC (PMIC), a charger IC, or a battery or fuel gauge. The PMICmay have a wired and/or wireless charging scheme. Examples of thewireless charging method may include, for example, a magnetic resonancemethod, a magnetic induction method, an electromagnetic method, and thelike. Additional circuits (for example, a coil loop, a resonancecircuit, a rectifier, and the like) for wireless charging may be furtherincluded. The battery gauge may measure, for example, the residualquantity of battery 296, a charging voltage, current, or temperature.The battery 296 may include, for example, a rechargeable battery and/ora solar battery.

The indicator 297 may show particular statuses of the electronic device201 or a part (for example, AP 210) of the electronic device 201, forexample, a boot-up status, a message status, a charging status, and thelike. The motor 298 may convert an electrical signal into mechanicalvibrations, and may generate a vibration or haptic effect. Although notillustrated, the electronic device 201 may include a processing unit(for example, a GPU) for supporting mobile TV. The processing device forsupporting mobile TV may process media data according to a standard ofdigital multimedia broadcasting (DMB), digital video broadcasting (DVB),media flow, and the like.

Each of the components of the electronic device according to the presentdisclosure may be implemented by one or more components and the name ofthe corresponding component may vary depending on a type of theelectronic device. In various embodiments of the present disclosure, theelectronic device may include at least one of the above-describedelements. Some of the above-described elements may be omitted from theelectronic device, or the electronic device may further includeadditional elements. Further, some of the components of the electronicdevice according to the various embodiments of the present disclosuremay be combined to form a single entity, and thus, may equivalentlyexecute functions of the corresponding elements prior to thecombination.

FIG. 3 is a block diagram of a program module according to variousembodiments of the present disclosure.

Referring to FIG. 3, according to an embodiment of the presentdisclosure, a program module 310 (for example, the program 140) mayinclude an OS for controlling resources related to an electronic device(for example, the electronic device 101) and/or various applications(for example, the application programs 147) executed in the operatingsystem. The operating system may be, for example, Android, iOS, Windows,Symbian, Tizen, Bada, and the like.

The programming module 310 may include a kernel 320, middleware 330, anAPI 360, and/or an application 370. At least some of the program module310 may be preloaded in an electronic device or downloaded from a server(for example, the server 106).

The kernel 320 (for example, the kernel 141) may include, for example, asystem resource manager 321 or a device driver 323. The system resourcemanager 321 may control, allocate, or collect the system resources.According to an embodiment of the present disclosure, the systemresource manager 321 may include a process manager, a memory manager, afile system manager, and the like. The device driver 323 may include,for example, a display driver, a camera driver, a BT driver, ashared-memory driver, a USB driver, a keypad driver, a Wi-Fi driver, anaudio driver, or an inter-process communication (IPC) driver.

The middleware 330 may provide a function required by the applications370 in common or may provide various functions to the applications 370through the API 360 so that the applications 370 may efficiently use theelectronic device's limited system resources. According to an embodimentof the present disclosure, the middleware 330 (for example, themiddleware 143) may include at least one of a runtime library 335, anapplication manager 341, a window manager 342, a multimedia manager 343,a resource manager 344, a power manager 345, a database manager 346, apackage manager 347, a connectivity manager 348, a notification manager349, a location manager 350, a graphic manager 351, and a securitymanager 352.

The run time library 335 may include, for example, a library module thata compiler uses in order to add new functions through a programminglanguage while the application 370 is executed. The run time library 335may perform input/output management, memory management, a function foran arithmetic function, and the like.

The application manager 341 may manage, for example, a life cycle of atleast one application among the applications 370. The window manager 342may manage a graphical user interface (GUI) resource used in a screen.The multimedia manager 343 may recognize a format required forreproducing various media files, and may encode or decode a media fileusing a codec appropriate for the corresponding format. The resourcemanager 344 may manage resources, such as a source code, a memory, or astorage space of at least one application among the applications 370.

The power manager 345 may operate together with a basic input/outputsystem (BIOS) to manage a battery or power, and may provide powerinformation required for the operation of the electronic device. Thedatabase manager 346 may generate, search for, or change a database tobe used by at least one of the applications 370. The package manager 347may manage installing or updating applications distributed in the formof a package file.

For example, the connectivity manager 348 may manage wirelessconnections, such as Wi-Fi, BT, and the like. The notification manager349 may display or report an event, such as the reception of a message,an appointment, a proximity notification, and the like, to a userwithout disturbance. The location manager 350 may manage locationinformation of an electronic device. The graphic manager 351 may managegraphic effects to be provided to a user and user interfaces related tothe graphic effects. The security manager 352 may provide varioussecurity functions required for system security, user authentication,and the like. According to an embodiment of the present disclosure, whenan electronic device (for example, electronic device 101) has a callfunction, the middleware 330 may further include a telephony manager formanaging a voice call function or a video call function of theelectronic device.

The middleware 330 may include a middleware module for forming acombination of various functions of the aforementioned elements. Themiddleware 330 may provide a module specialized for each type ofoperating system in order to provide a differentiated function. Inaddition, a few existing elements may be dynamically removed from themiddleware 330, or a new element may be added to the middleware 330.

The API 360 (for example, the API 145) is a set of API programmingfunctions, and may be provided in a different configuration for eachoperating system. For example, in the case of Android or iOS, one APIset may be provided for each platform. In the case of Tizen, two or moreAPI sets may be provided for each platform.

The applications 370 (for example, the application programs 147) mayinclude, for example, one or more applications that are capable ofproviding functions, such as a home 371, a dialer 372, a short messageservice (SMS)/multimedia message service (MMS) 373, an instant message(IM) 374, a browser 375, a camera 376, an alarm 377, contacts 378, avoice dialer 379, an email 380, a calendar 381, a media player 382, analbum 383, a clock 384, health care (for example, measuring exercisequantity or blood sugar), environment information (for example,atmospheric pressure, humidity, or temperature information), and thelike.

According to an embodiment of the present disclosure, the applications370 may include an application (hereinafter, referred to as an“information exchange application” for ease of the description)supporting exchanging information between the electronic device (forexample, the electronic device 101) and an external electronic device(for example, the first external electronic device 102 or the secondexternal electronic device 104). The information exchange applicationmay include, for example, a notification relay application fortransmitting predetermined information to the external electronicdevice, or a device management application for managing the externalelectronic device.

For example, the notification relay application may include a functionof delivering, to an external electronic apparatus (for example, thefirst external electronic device 102 or the second external electronicdevice 104), notification information generated by other applications(for example, an SMS/MMS application, an email application, a healthcare application, an environmental information application, and thelike) of the electronic device. Further, the notification relayapplication may receive notification information from, for example, anexternal electronic device, and may provide the received notificationinformation to a user. For example, the device management applicationmay manage (for example, install, delete, or update) at least onefunction of an external electronic device (for example, the secondexternal electronic device 104) communicating with the electronic device(for example, a function of turning on/off the external electronicdevice itself (or some components) or a function of adjusting luminance(or a resolution) of the display), applications operating in theexternal electronic device, or services provided by the externalelectronic device (for example, a call service and a message service).

According to an embodiment of the present disclosure, the applications370 may include an application (for example, a health managementapplication) designated according to attributes (for example, attributesof the electronic device, such as the type of electronic device whichcorresponds to a mobile medical device) of the external electronicdevice (for example, the first external electronic device 102 or thesecond external electronic device 104). According to an embodiment ofthe present disclosure, the applications 370 may include an applicationreceived from the external electronic device (for example, the server106, or the first external electronic device 102 or the second externalelectronic device 104). According to an embodiment of the presentdisclosure, the applications 370 may include a preloaded application ora third party application, which can be downloaded from a server. Namesof the elements of the program module 310, according to theabove-described embodiments of the present disclosure, may changedepending on the type of operating system.

According to various embodiments of the present disclosure, at leastsome of the program module 310 may be implemented in S/W, firmware, H/W,or a combination of two or more thereof. At least some of theprogramming module 310 may be implemented (for example, executed) by,for example, the processor (for example, the AP 210). At least some ofthe programming module 310 may include, for example, a module, aprogram, a routine, sets of instructions, a process, and the like, forperforming one or more functions. The term “module” used in embodimentsof the present disclosure may refer to, for example, a unit includingone or more combinations of H/W, S/W, and firmware. The “module” may beinterchangeable with a term, such as a unit, a logic, a logical block, acomponent, or a circuit. The “module” may be the smallest unit of anintegrated component or a part thereof. The “module” may be a minimumunit for performing one or more functions or a part thereof. The“module” may be mechanically or electronically implemented. For example,the “module” according to the present disclosure may include at leastone of an application-specific IC (ASIC) chip, a field-programmable gatearrays (FPGA), and a programmable-logic device for performing operationswhich has been known or are to be developed hereinafter.

According to various embodiments of the present disclosure, at leastsome of the devices (for example, modules or functions thereof) or themethod (for example, operations) according to the present disclosure maybe implemented by a command stored in a non-transitory computer-readablestorage medium in a programming module form. The instruction, whenexecuted by a processor (for example, the processor 120), may cause theone or more processors to execute the function corresponding to theinstruction. The non-transitory computer-readable storage medium may be,for example, the memory 130.

Certain aspects of the present disclosure can also be embodied ascomputer readable code on a non-transitory computer readable recordingmedium. A non-transitory computer readable recording medium is any datastorage device that can store data which can be thereafter read by acomputer system. Examples of the non-transitory computer readablerecording medium include a Read-Only Memory (ROM), a Random-AccessMemory (RAM), Compact Disc-ROMs (CD-ROMs), magnetic tapes, floppy disks,and optical data storage devices. The non-transitory computer readablerecording medium can also be distributed over network coupled computersystems so that the computer readable code is stored and executed in adistributed fashion. In addition, functional programs, code, and codesegments for accomplishing the present disclosure can be easilyconstrued by programmers skilled in the art to which the presentdisclosure pertains.

At this point it should be noted that the various embodiments of thepresent disclosure as described above typically involve the processingof input data and the generation of output data to some extent. Thisinput data processing and output data generation may be implemented inhardware or software in combination with hardware. For example, specificelectronic components may be employed in a mobile device or similar orrelated circuitry for implementing the functions associated with thevarious embodiments of the present disclosure as described above.Alternatively, one or more processors operating in accordance withstored instructions may implement the functions associated with thevarious embodiments of the present disclosure as described above. Ifsuch is the case, it is within the scope of the present disclosure thatsuch instructions may be stored on one or more non-transitory processorreadable mediums. Examples of the processor readable mediums include aROM, a RAM, CD-ROMs, magnetic tapes, floppy disks, and optical datastorage devices. The processor readable mediums can also be distributedover network coupled computer systems so that the instructions arestored and executed in a distributed fashion. In addition, functionalcomputer programs, instructions, and instruction segments foraccomplishing the present disclosure can be easily construed byprogrammers skilled in the art to which the present disclosure pertains.

The programming module according to the present disclosure may includeone or more of the aforementioned components or may further includeother additional components, or some of the aforementioned componentsmay be omitted. Operations executed by a module, a programming module,or other component elements according to various embodiments of thepresent disclosure may be executed sequentially, in parallel,repeatedly, or in a heuristic manner. Further, some operations may beexecuted according to another order or may be omitted, or otheroperations may be added.

Various embodiments disclosed herein are provided merely to easilydescribe technical details of the present disclosure and to help theunderstanding of the present disclosure, and are not intended to limitthe scope of the present disclosure. Therefore, it should be construedthat all modifications and changes or modified and changed forms basedon the technical idea of the present disclosure fall within the scope ofthe present disclosure.

FIG. 4 is a diagram illustrating a secure connection system according tovarious embodiments of the present disclosure. FIG. 5 is a block diagramof a secure connection device according to various embodiments of thepresent disclosure. FIG. 5 is a block diagram illustrating a firstelectronic device 400 a and a second electronic device 400 b of FIG. 4.

Referring to FIGS. 4 and 5, a secure connection system according tovarious embodiments may include a first electronic device 400 a (forexample, the electronic device 101, the first external electronic device102, or the second external electronic device 104 of FIG. 1 and theelectronic device 201 of FIG. 2), a second electronic device 400 b (forexample, the electronic device 101, the first external electronic device102, or the second external electronic device 104 of FIG. 1, or theelectronic device 201 of FIG. 2), and a server device 500 (for example,the server 106 of FIG. 1).

According to various embodiments of the present disclosure, the firstelectronic device 400 a may include a first processor 410, a firstshort-range communication module 411 (for example, the BT module 225 ofFIG. 2), a security module 412, and a memory 413.

According to various embodiments of the present disclosure, the firstprocessor 410 (for example, the processor 120 of FIG. 1 or the AP 201 ofFIG. 2) may encrypt security information stored in the security module412 using a session key identical to a session key of the secondelectronic device 400 b, and transmits the encrypted securityinformation to the second electronic device 400 b that is connectedthrough the first short-range communication module 411.

According to an embodiment of the present disclosure, in the state inwhich the second electronic device 400 b is connected through the firstshort-range communication module 411 over a first short-rangecommunication (for example, BT), when a first pairing request message isreceived from the second electronic device 400 b, the first processor410 may transmit, to the second electronic device 400 b, a first pairingresponse message together with unique information (identification (ID))of the first electronic device 400 a. After transmitting the firstpairing response message, the first processor 410 may receive, from thesecond electronic device 400 b, a pairing key that registers, on theserver device 500, the first electronic device 400 a as an electronicdevice linked to the second electronic device 400 b. The first processor410 may store, in the memory 413, the pairing key to be linked to theunique information (ID) of the electronic device. In addition, thepairing key may be stored in a separate security memory, such asTrustZone, which is prepared in the first processor 410 from theperspective of S/W. In addition, the pairing key may be stored in thesecurity module 412, which is separately configured from the perspectiveof H/W.

According to an embodiment of the present disclosure, the uniqueinformation (ID) of the electronic device 400 a may be at least one ofunique information (ID) of the security module 412, and uniqueinformation (ID) of the security information stored in the securitymodule 412.

According to an embodiment of the present disclosure, after transmittingthe first pairing response message to the second electronic device 400b, the first processor 410 may detect a master key that is stored to belinked to the unique information (ID) of the electronic device, from thememory 413, may generate a pairing key using the master key, and maystore the pairing key to be linked to the unique information of theelectronic device. After transmitting the first pairing responsemessage, the first processor 410 may receive, from the second electronicdevice 400 b, a pairing key that registers, on the server device 500,the first electronic device 400 a as an electronic device linked to thesecond electronic device 400 b. When the pairing key stored in thememory 413 and the pairing key received from the second electronicdevice 400 b are identical, the first processor 410 may maintain storingthe pairing key. When the pairing key stored in the memory 413 and thepairing key received from the second electronic device 400 b are notidentical, the first processor 410 may transmit, to the secondelectronic device 400 b, a message indicating that the pairing keys aredifferent, and may delete the pairing key stored in the memory 413.

According to an embodiment of the present disclosure, when a secondpairing request message is transmitted from the second electronic device400 b that is connected over a first short-range communication, thefirst processor 410 generates a first random number and transmits thefirst random number to the second electronic device 400 b. Aftertransmitting the first random number to the second electronic device 400b, when a second random number and a first authentication key arereceived from the second electronic device 400 b, the first processor410 may generate a second authentication key using the first randomnumber, the second random number, and the pairing key. The firstprocessor 410 may compare the first authentication key received from thesecond electronic device 400 b and the second authentication key, andwhen the first authentication key and the second authentication key areidentical, the first processor 410 may transmit, to the secondelectronic device 400 b, a second pairing response message together withsession key generation information.

According to an embodiment of the present disclosure, when the firstauthentication key and the second authentication key are identical, thefirst processor 410 may generate a session key using the session keygeneration information, may encrypt security information stored in thesecurity module 412 using the session key, and may transmit theencrypted security information to the second electronic device 400 b.

According to an embodiment of the present disclosure, the firstprocessor 410 may generate the session key generation informationincluding at least one of stamp (Timestamp) information and countinformation of the first electronic device 400 a.

According to an embodiment of the present disclosure, the firstprocessor 410 may designate an expiration date of the session key usingthe stamp (Timestamp) information out of the session key generationinformation.

According to various embodiments of the present disclosure, the securitymodule 412 may store security information required for executing aservice through a second short-range communication module (for example,the NFC module 228 of FIG. 2).

According to an embodiment of the present disclosure, the securitymodule 412 may include at least one of an embedded secure element (eSE)chip, a universal integrated circuit card (UICC) chip, an embedded UICC(eUICC) chip, and a host card emulation (HCE) chip.

According to an embodiment of the present disclosure, the securitymodule 412 may store a pairing key that registers, on the server device500, the first electronic device 400 a as an electronic device linked tothe second electronic device 400 b, which is received from the secondelectronic device 400 b.

According to an embodiment of the present disclosure, the securitymodule 412 may be configured to be fixed to the first electronic device400 a or to be detachable from the first electronic device 400 a. Forexample, when the security module 412 is an eSE chip, it may beconfigured to be fixed to the first electronic device 400 a, or when thesecurity module 412 is a UICC chip, it may be configured to bedetachable from the first electronic device 400 a.

According to various embodiments of the present disclosure, the memory413 may store the unique information (ID) of the first electronic device400 a and a pairing key to be linked to each other, or may store theunique information (ID) of the first electronic device 400 a, a masterkey, and a pairing key to be linked to one another.

According to an embodiment of the present disclosure, the memory 413 maystore a session key identical to that of the second electronic device400 b, and may store an application (for example, a pairing managingapplication) that is capable of transmitting encrypted securityinformation to the second electronic device 400 b using the session key.

According to various embodiments of the present disclosure, the secondelectronic device 400 b may include a second processor 420, a firstshort-range communication module 421 (for example, the BT module 225 ofFIG. 2), a second short-range communication module 422 (for example, theNFC module 228 of FIG. 2), and a memory 423.

According to various embodiments of the present disclosure, the secondprocessor 420 (for example, the processor 120 of FIG. 1 or the AP 201 ofFIG. 2) may receive security information, which has been encrypted usinga session key, from the first electronic device 400 a that is connectedthrough the first short-range communication module 421, and maytransmit, to a third electronic device 400 c that is connected throughthe second short-range communication module 422, the securityinformation decoded through a session key identical to the session keyof the first electronic device 400 a.

According to an embodiment of the present disclosure, the secondprocessor 420 may transmit a first pairing request message as a generalpairing request, to the first electronic device 400 a that is connectedover a first short-range communication. When the unique information (ID)of the first electronic device is received together with a first pairingresponse message from the first electronic device 400 a, the secondprocessor 420 may transmit the unique information (ID) of the firstelectronic device to a server device 500 together with user informationof the second electronic device (for example, an ID and a passwordregistered on a first server 510). When a pairing key that registers thefirst electronic device 400 a as an electronic device linked to thesecond electronic device 400 b, is received from the server device 500,the second processor 420 may transmit the pairing key to the firstelectronic device 400 a.

According to an embodiment of the present disclosure, the secondprocessor 420 may transmit a second pairing request message to the firstelectronic device 400 a as a security pairing request after transmittingthe pairing key to the first electronic device 400 a. The secondprocessor 420 may transmit, to the server device 500, a first randomnumber that is received from the first electronic device after thetransmission of the second pairing request message. The second processor420 may transmit, to the first electronic device 400 a, a second randomnumber and a first authentication key, which are received from theserver device 500. When session key generation information (for example,time stamp information or count information) is received together with asecond pairing response message from the first electronic device 400 a,after the transmission of the second random number and the firstauthentication key, the second processor 420 may transmit the sessionkey generation information to the server device 500. When a session keyis received from the server device 500 after the transmission of thesession key generation information, the second processor 420 may decode,using the session key, encrypted security information that is receivedfrom the first electronic device 400 a. The second processor 210transmits the security information, which is received from the firstelectronic device 400 a, to the third electronic device 400 c (forexample, an NFC reader) that is connected over a second short-rangecommunication, and completes authentication, and executes a serviceusing the third electronic device 400 c.

According to various embodiments of the present disclosure, a memory 423may store user information (for example, an ID and a password) of thesecond electronic device, which is registered on the server device 500.

According to an embodiment of the present disclosure, the memory 423 maystore a session key identical to that of the first electronic device 400a, and may store an application (for example, a pairing managingapplication) that is capable of decoding, using the session key,encrypted security information that is received from the firstelectronic device 400 a.

According to various embodiments of the present disclosure, the serverdevice 500 may include the first server 510 and a second server 520.According to an embodiment of the present disclosure, the server device500 may be separated into the first server 510 and the second server520, or the first server 510 and the second server 520 may beintegrated.

According to various embodiments of the present disclosure, the firstserver 510 may register the first electronic device 400 a as anelectronic device linked to the second electronic device 400 b using thepairing key, may generate a session key that allows the reception ofsecurity information of the first electronic device, and may transmitthe session key to the second electronic device 400 b.

According to an embodiment of the present disclosure, the first server510 may include a processor (not illustrated), and may execute afunction of a paging managing server.

According to an embodiment of the present disclosure, the first server510 may receive, from the second electronic device 400 b, the userinformation (for example, an ID and a password) of the second electronicdevice 400 b and the unique information (ID) of the first electronicdevice 400 a. When it is determined that the user information of thesecond electronic device 400 b is information registered on the firstserver 510, the first server 510 determines that the authentication withrespect to the second electronic device 400 b is successful, and maystore the unique information (ID) of the first electronic device 400 ato be linked to the user information of the second electronic device 400b. When the authentication with respect to the second electronic device400 b is successful, the first server 510 may transmit the uniqueinformation (ID) of the first electronic device 400 a to the secondserver 520. After the transmission of the unique information (ID) of thefirst electronic device 400 a, when a pairing key is received from thesecond server 520, the first server 510 may store the pairing key to belinked to the user information of the second electronic device 400 b andthe unique information (ID) of the first electronic device 400 a, andmay transmit the pairing key to the second electronic device 400 b.

According to an embodiment of the present disclosure, after thetransmission of the pairing key, when a first random number is receivedfrom the second electronic device 400 b, the first server 510 maygenerate a second random number, may generate a first authentication keyusing the first random number, the second random number, and the pairingkey, and may transmit the second random number and the firstauthentication key to the second electronic device 400 b. After thetransmission of the second random number and the first authenticationkey, when session key generation information is received from the secondelectronic device 400 b, the first server 510 may generate a session keyusing the session key generation information, and may transmit thesession key to the second electronic device 400 b.

According to various embodiments of the present disclosure, the secondserver 520 may generate a pairing key using a master key thatcorresponds to the unique information of the first electronic device.

According to an embodiment of the present disclosure, the second server520 may include a processor (not illustrated), and may execute afunction of a key managing server.

According to an embodiment of the present disclosure, when the uniqueinformation (ID) of the first electronic device 400 a is received fromthe first server 510, the second server 520 may detect, from a database(DB), a master key that is stored to be linked to the first electronicdevice 400 a, and may transmit the pairing key generated using themaster key to the first server 510.

According to an embodiment of the present disclosure, the firstshort-range communication module 411 may execute short-rangecommunication with the second electronic device, the security module 412may store security information, and the first processor 410 may beconfigured to receive, from the second electronic device, a pairing keythat registers the electronic device as an electronic device linked tothe second electronic device, transmit session key generationinformation to the second electronic device when authentication withrespect to the second electronic device is completed using the pairingkey, generate a session key using the session key generationinformation, and encrypt the security information and transmit theencrypted security information to the second electronic device.

According to various embodiments of the present disclosure, the firstprocessor 410 may be configured to transmit, to the second electronicdevice, when a first pairing request message is received from the secondelectronic device, a first pairing response message together with uniqueinformation of the electronic device, and store, when the pairing key isreceived from the second electronic device, the pairing key to be linkedto the unique information of the electronic device.

According to various embodiments of the present disclosure, the firstprocessor 410 may be configured to generate a first random number andtransmit the generated first random number to the second electronicdevice, when a second pairing request message is received from thesecond electronic device, generate, when a second random number and afirst authentication key are received from the second electronic device,a second authentication key using the first random number, the secondrandom number, and the pairing key, and transmit, to the secondelectronic device, when the first authentication key and the secondauthentication key are identical, a second pairing response messagetogether with session key generation information.

According to various embodiments of the present disclosure, the firstprocessor 410 may be configured to generate, when the firstauthentication key and the second authentication key are identical, thesession key using the session key generation information.

According to various embodiments of the present disclosure, the sessionkey generation information includes at least one of time stamp(Timestamp) information and count information. According to variousembodiments of the present disclosure, the first short-rangecommunication module 421 may execute short-range communication with afirst electronic device, the second short-range communication module 422may execute short-range communication with a third electronic device,and the processor may 420 be configured to transmit, when a pairing key,which registers the first electronic device as an electronic devicelinked to the electronic device, is received from a server device, thepairing key to the first electronic device, and transmit, to the serverdevice, session key generation information received from the firstelectronic device, decode encrypted security information that isreceived from the first electronic device, using a session key receivedfrom the server device, and transmit the decoded information to thethird electronic device.

Timestamp refers to a time stamp when the first electronic deviceauthenticates the first server, and is a factor used when the firstserver generates a session key. Timestamp varies for each session andthus, a session key generated using Timestamp is generated to bedifferent for each time. In addition, Timestamp is a reference used whenthe first server maintains a session during a predetermined period oftime, and indicates a period of time for using a session key.

Count indicates the number of sessions that are connected to the firstserver up to date in the first electronic device, and is a factor usedwhen the first server generates a session key. Count in association witha connection between the first electronic device and the first servervaries over time and thus, a session key is generated to be differentfor each time. In addition, the first server and the first electronicdevice have an identical count value and thus, when the first serverreceives a different count value, there is a high probability of anabnormal connection. Accordingly, Count may detect an abnormalconnection.

According to various embodiments of the present disclosure, the secondprocessor 420 may be configured to transmit, when a first pairingresponse message is received together with unique information of thefirst electronic device, from the first electronic device, in responseto a first pairing request message, the unique information of the firstelectronic device together with user information of the electronicdevice to the server device, and receive the pairing key from the serverdevice.

According to various embodiments of the present disclosure, the secondprocessor 420 may be configured to transmit, when a first random numberis received from the first electronic device in response to thetransmission of a second pairing request message, the first randomnumber to the server device, and transmit a second random number and afirst authentication key received from the server device, to the firstelectronic device, and receive session key generation information fromthe first electronic device.

According to various embodiments of the present disclosure, the sessionkey generation information includes at least one of time stamp(Timestamp) information and count information. According to variousembodiments of the present disclosure, a processor of the server device500 may be configured to generate and store a pairing key forregistering a first electronic device as being linked to an electronicdevice, using unique information of the first electronic device receivedfrom the electronic device, and transmitting the pairing key to theelectronic device, and generating a session key identical to a sessionkey of the first electronic device using session key generationinformation of the first electronic device received from the electronicdevice, and transmitting the session key to the electronic device.

According to various embodiments of the present disclosure, theprocessor of the server device 500 may be configured to perform, whenuser information of the electronic device and unique information of thefirst electronic device are received from the electronic device,authentication with respect to the electronic device using the userinformation of the electronic device, and generate and store the pairingkey using a master key that corresponds to the unique information of thefirst electronic device, when the authentication with respect to theelectronic device is completed.

According to various embodiments of the present disclosure, theprocessor of the server device 500 may be configured to generate, when afirst random number is received from the electronic device, a secondrandom number, generate a first authentication key using the firstrandom number, the second random number, and the pairing key, andtransmit the second random number and the first authentication key tothe electronic device, and receive session key generation information ofthe first electronic device from the electronic device.

According to various embodiments of the present disclosure, the sessionkey generation information may include at least one of time stamp(Timestamp) information and count information.

FIGS. 6A and 6B are flowcharts illustrating a registration method for asecure connection according to various embodiments of the presentdisclosure.

Referring to FIGS. 6A and 6B, a registration method for a secureconnection according to various embodiments of the present disclosure isdescribed through an example executed by the first electronic device 400a, the second electronic device 400 b, and the server device 500 ofFIGS. 4 and 5. With reference to FIGS. 6A and 6B, in operation 611, thefirst electronic device 400 a (for example, the first processor 410) andthe second electronic device 400 b (for example, the second processor420) are connected through a first short-range communication (forexample, BT communication).

In operation 612, the second electronic device 400 b transmits a firstpairing request message, which is a general pairing request, to thefirst electronic device 400 a.

In operation 613, the first electronic device 400 a transmits, to thesecond electronic device 400 b, a first pairing response messagetogether with the unique information (for example, the uniqueinformation of security information) of the first electronic device.

In operation 614, when the unique information of the first electronicdevice is received from the first electronic device 400 a, the secondelectronic device 400 b transmits, to the first server 510, the userinformation (for example, an ID and a password) of the second electronicdevice and the unique information of the first electronic device.

In operation 615, the first server 510 (for example, a processor)executes authentication with respect to the second electronic devicebased on whether the user information of the second electronic device400 b exists from among a plurality of pieces of user information storedin the DB of the first server 510.

In operation 616, the first server 510 determines that theauthentication fails when the user information of the second electronicdevice 400 b does not exist among the plurality of pieces of userinformation stored in the DB of the first server 510, and in operation617, transmits an error information message to the second electronicdevice 400 b in response to the failure of the authentication.

In operation 616, the first server 510 determines that theauthentication is successful when the user information of the secondelectronic device 400 b exists among the plurality of pieces of userinformation stored in the DB of the first server 510, and in operation618, stores the unique information of the first electronic device to belinked to the user information of the second electronic device in the DBof the first server.

In operation 619, the first server 510 transmits the unique informationof the first electronic device to the second server 520.

In operation 620, the second server 520 detects, from the DB of thesecond server 520, a master key stored to correspond to the uniqueinformation of the first electronic device when the unique informationof the first electronic device is received from the first server 510.The second server 520 generates a pairing key (K_P) using the detectedmaster key in operation 621, and transmits the pairing key (K_P) to thefirst server 510 in operation 622.

In operation 623, when the pairing key (K_P) is received from the secondserver 520, the first server 510 stores, in the DB of the first server,the pairing key (K_P) to be linked to the user information of the secondelectronic device and the unique information of the first electronicdevice, thereby registering the first electronic device 400 a as anelectronic device linked to the second electronic device 400 b using thepairing key (K_P).

In operation 624, the first server 510 transmits the pairing key (K_P)to the second electronic device 400 b.

In operation 625, when the pairing key (K_P) that registers the firstelectronic device 400 a as an electronic device linked to the secondelectronic device 400 b is received from the first server 510, thesecond electronic device 400 b transmits the pairing key (K_P) to thefirst electronic device 400 a.

In operation 626, when the pairing key (K_P) that registers the firstelectronic device 400 a as an electronic device associated the secondelectronic device 400 b is received from the second electronic device400 b, the first electronic device 400 a stores the pairing key (K_P) tobe linked to the unique information of the first electronic device.

FIGS. 7A and 7B are flowcharts illustrating a secure connection methodaccording to various embodiments of the present disclosure.

Referring to FIGS. 7A and 7B, a secure connection method, according tovarious embodiments of the present disclosure, is described through anexample executed by the first electronic device 400 a, the secondelectronic device 400 b, and the server device 500 of FIGS. 4 and 5. Asecure connection method of FIGS. 7A and 7B, according to variousembodiments of the present disclosure, may be executed after executing aregistration method for secure connection of FIGS. 6A and 6B accordingto various embodiments of the present disclosure. With reference toFIGS. 7A and 7B, in operation 711, the first electronic device 400 a(for example, the first processor 410) and the second electronic device400 b (for example, the second processor 420) may be connected through afirst short-range communication (for example, BT communication).

In operation 712, as the second electronic device 400 b transmits theuser information of the second electronic device to the first server 510through the web and determines that the authentication is successful,the second electronic device 400 b may be connected to the first server510.

In operation 713, after the registration of FIGS. 6A and 6B, the secondelectronic device 400 b may transmit a second pairing request message,which is a security pairing request, to the first electronic device 400a.

In operation 714, when the second pairing request message is receivedfrom the second electronic device 400 b, the first electronic device 400a generates a first random number in operation 714, and transmits thefirst random number to the second electronic device 400 b in operation715.

In operation 716, when the first random number is received from thefirst electronic device 400 a, the second electronic device 400 btransmits the first random number to the first server 510 (for example,the processor).

In operation 717, when the first random number is received from thesecond electronic device 400 b, the first server 510 generates a secondrandom number.

In operation 718, the first server 510 generates a first authenticationkey (Res_Key) using at least one of the first random number, the secondrandom number, and the pairing key (K_P).

In operation 719, the first server 510 transmits the second randomnumber and the first authentication key (Res_Key) to the secondelectronic device 400 b.

In operation 720, when the second random number and the firstauthentication key (Res_key) are received from the first server 510, thesecond electronic device 400 b transmits the second random number andthe first authentication key (Res_Key) to the first electronic device400 a.

In operation 721, when the second random number and the firstauthentication key (Res_Key) are received from the second electronicdevice 400 b, the first electronic device 400 a generates a secondauthentication key (Res_Key) using at least one of the first randomnumber, the second random number, and the pairing key (K_P).

In operation 722, the first electronic device 400 a compares the firstauthentication key received from the second electronic device 400 b andthe generated second authentication key. When the first authenticationkey and the second authentication key are different in operation 722,the first electronic device 400 a transmits, to the second electronicdevice 400 b, an error message indicating that the authentication keysare different in operation 723. When the first authentication key andthe second authentication key are identical in operation 722, the firstelectronic device 400 a transmits a second pairing response messagetogether with the session key generation information (for example, timestamp (Timestamp) information and count information) to the secondelectronic device 400 b in operation 724.

In operation 725, the first electronic device 400 a generates a sessionkey (K_S) using the session key generation information (for example,time stamp (Timestamp) information and count information).

In operation 726, when the session key generation information and thesecond pairing response message are received from the first electronicdevice 400 a, the second electronic device 400 b transmits the sessionkey generation information to the first server 510.

In operation 727, when the session key generation information isreceived from the second electronic device 400 b, the first server 510generates a session key (K_S) using the session key generationinformation.

In operation 728, the first server 510 transmits the session key (K_S)to the second electronic device 400 b.

In operation 729, the first electronic device 400 a encrypts securityinformation stored in the security module 412 of the first electronicdevice 400 a using the session key (K_S) that is identical to that ofthe second electronic device 400 b, and transmits the encrypted securityinformation to the second electronic device 400 b. When the encryptedsecurity information is received from the first electronic device 400 ain operation 729, the second electronic device 400 b decodes thesecurity information using the session key.

In operation 730, when the second electronic device 400 b transmits thesecurity information received from the first electronic device 400 a tothe third electronic device 400 c (for example, an NFC reader) anddetermines that the authentication is completed, the second electronicdevice 400 b may proceed with a service (for example, NFC paymentservice) with the third electronic device 400 c.

According to various embodiments of the present disclosure, a secureconnection method of an electronic device is provided. The methodincludes receiving a pairing key that registers the electronic device asan electronic device that is linked to a second electronic device fromthe second electronic device that is connected over a first short-rangecommunication, transmitting session key generation information to thesecond electronic device when authentication with respect to the secondelectronic device is completed using the pairing key, and generating asession key using the session key generation information, encryptingsecurity information through the session key, and transmitting theencrypted information to the second electronic device.

According to various embodiments of the present disclosure, theoperation of receiving the pairing key includes transmitting, to thesecond electronic device, when a first pairing request message isreceived from the second electronic device, a first pairing responsemessage together with unique information of the electronic device, andstoring, when the pairing key is received from the second electronicdevice, the pairing key to be linked to the unique information of theelectronic device.

According to various embodiments of the present disclosure, theoperation of transmitting the session key generation informationincludes generating, when a second pairing request message is receivedfrom the second electronic device, a first random number andtransmitting the first random number to the second electronic device,generating, when a second random number and a first authentication keyare received from the second electronic device, a second authenticationkey using the first random number, the second random number, and thepairing key, and transmitting, to the second electronic device, when thefirst authentication key and the second authentication key areidentical, a second pairing response message together with the sessionkey generation information.

According to various embodiments of the present disclosure, when thefirst authentication key and the second authentication key areidentical, the method further includes generating the session key usingthe session key generation information.

According to various embodiments of the present disclosure, the sessionkey generation information includes at least one of time stamp(Timestamp) information and count information.

According to various embodiments of the present disclosure, a secureconnection method of an electronic device is provided. The methodincludes transmitting, when a pairing key that registers a firstelectronic device as an electronic device linked to the electronicdevice is received from a server device, the pairing key to the firstelectronic device that is connected over a first short-rangecommunication, transmitting, to the server device, session keygeneration information received from the first electronic device, anddecoding, when a session key is received from the server device,encrypted security information that is received from the firstelectronic device, using the session key, and transmitting the decodedinformation to a third electronic device that is connected over a secondshort-range communication.

According to various embodiments of the present disclosure, theoperation of transmitting to the first electronic device includestransmitting a first pairing request message, transmitting, to theserver device, the unique information of the first electronic devicetogether with the user information of the electronic device when a firstpairing response message is received together with the uniqueinformation of the first electronic device, from the first electronicdevice, in response to the first pairing request message, and receivingthe pairing key from the server device.

According to various embodiments of the present disclosure, theoperation of transmitting to the server device, includes transmitting asecond pairing request message, transmitting, when a first random numberis received from the first electronic device in response to transmissionof the second pairing request message, the first random number to theserver device, transmitting, when a second random number and a firstauthentication key are received from the server device, the secondrandom number and the first authentication key to the first electronicdevice, and receiving the session key generation information from thefirst electronic device.

According to various embodiments of the present disclosure, the sessionkey generation information includes at least one of time stamp(Timestamp) information and count information.

According to various embodiments of the present disclosure, a secureconnection method of a server device is provided. The method includesgenerating and storing, when unique information of a first electronicdevice is received from an electronic device, a pairing key forregistering the first electronic device as an electronic device linkedto the electronic device, using the unique information of the firstelectronic device, and transmitting the pairing key to the electronicdevice, and generating, when session key generation information of thefirst electronic device is received from the electronic device, asession key identical to a session key of the first electronic deviceusing the session key generation information, and transmitting thesession key to the electronic device.

According to various embodiments of the present disclosure, theoperation of transmitting the pairing key to the electronic deviceincludes executing, when user information of the electronic device andunique information of the first electronic device are received from theelectronic device, authentication with respect to the electronic deviceusing the user information of the electronic device, and generating andstoring, when the authentication with respect to the electronic deviceis completed, the pairing key using a master key that corresponds to theunique information of the first electronic device.

According to various embodiments of the present disclosure, theoperation of transmitting the session key to the electronic deviceincludes generating, when a first random number is received from theelectronic device, a second random number, generating a firstauthentication key using the first random number, the second randomnumber, and the pairing key, transmitting the second random number andthe first authentication key to the electronic device, and receivingsession key generation information of the first electronic device fromthe electronic device.

According to various embodiments of the present disclosure, the sessionkey generation information includes at least one of Timestampinformation and count information.

While the present disclosure has been shown and described with referenceto various embodiments thereof, it will be understood by those skilledin the art that various changes in form and details may be made thereinwithout departing from the spirit and scope of the present disclosure asdefined by the appended claims and their equivalents.

What is claimed is:
 1. An electronic device comprising: a firstshort-range communication module configured to execute short-rangecommunication with a second electronic device; a security moduleconfigured to store security information; and a processor configured to:receive, from the second electronic device, a pairing key that registersthe electronic device as being linked to the second electronic device,transmit session key generation information to the second electronicdevice when authentication with the second electronic device iscompleted based on the pairing key, generate a session key based on thesession key generation information, encrypt the security informationbased on the session key, and transmit the encrypted information to thesecond electronic device.
 2. The electronic device of claim 1, whereinthe processor is further configured to: transmit, to the secondelectronic device, when a first pairing request message is received fromthe second electronic device, a first pairing response message togetherwith unique information of the electronic device, and store, when thepairing key is received from the second electronic device, the pairingkey to be linked to the unique information of the electronic device. 3.The electronic device of claim 1, wherein the processor is furtherconfigured to: generate a first random number and transmit the generatedfirst random number to the second electronic device, when a secondpairing request message is received from the second electronic device,generate, when a second random number and a first authentication key arereceived from the second electronic device, a second authentication keybased on the first random number, the second random number, and thepairing key, and transmit, to the second electronic device, when thefirst authentication key and the second authentication key areidentical, a second pairing response message together with session keygeneration information.
 4. The electronic device of claim 3, wherein theprocessor is further configured to: generate, when the firstauthentication key and the second authentication key are identical, thesession key based on the session key generation information.
 5. Theelectronic device of claim 1, wherein the session key generationinformation comprises at least one of time stamp (Timestamp) informationor count information.
 6. An electronic device comprising: a firstshort-range communication module configured to execute short-rangecommunication with a first electronic device; a second short-rangecommunication module configured to execute short-range communicationwith a third electronic device; and a processor configured to: transmit,when a pairing key that registers the first electronic device as beinglinked to the electronic device is received from a server device, thepairing key to the first electronic device, transmit, to the serverdevice, session key generation information received from the firstelectronic device, decode encrypted security information that isreceived from the first electronic device based on a session keyreceived from the server device, and transmit the decoded information tothe third electronic device.
 7. The electronic device of claim 6,wherein the processor is further configured to: transmit, when a firstpairing response message is received together with unique information ofthe first electronic device, from the first electronic device, inresponse to a first pairing request message, the unique information ofthe first electronic device together with user information of theelectronic device to the server device, and receive the pairing key fromthe server device.
 8. The electronic device of claim 6, wherein theprocessor is further configured to: transmit, when a first random numberis received from the first electronic device in response to transmissionof a second pairing request message, the first random number to theserver device, transmit a second random number and a firstauthentication key received from the server device, to the firstelectronic device, and receive session key generation information fromthe first electronic device.
 9. The electronic device of claim 6,wherein the session key generation information comprises at least one oftime stamp (Timestamp) information or count information.
 10. A serverdevice comprising: a processor configured to: generate and store apairing key for registering a first electronic device as being linked toan electronic device based on unique information of the first electronicdevice received from the electronic device, transmit the pairing key tothe electronic device, generate a session key identical to a session keyof the first electronic device based on session key generationinformation of the first electronic device received from the electronicdevice, and transmit the session key to the electronic device.
 11. Theserver device of claim 10, wherein the processor is further configuredto: perform, when user information of the electronic device and uniqueinformation of the first electronic device are received from theelectronic device, perform authentication with respect to the electronicdevice based on the user information of the electronic device, andgenerate and store, when the authentication with respect to theelectronic device is completed, the pairing key based on a master keycorresponding to the unique information of the first electronic device.12. The server device of claim 10, wherein the processor is furtherconfigured to: generate, when a first random number is received from theelectronic device, a second random number, generate a firstauthentication key based on the first random number, the second randomnumber, and the pairing key, transmit the second random number and thefirst authentication key to the electronic device, and receive sessionkey generation information of the first electronic device from theelectronic device.
 13. The server device of claim 10, wherein thesession key generation information comprises at least one of time stamp(Timestamp) information or count information.
 14. A secure connectionmethod of an electronic device, the method comprising: receiving apairing key that registers the electronic device as being linked to asecond electronic device, from the second electronic device that isconnected over a first short-range communication; transmitting sessionkey generation information to the second electronic device whenauthentication with respect to the second electronic device is completedbased on the pairing key; generating a session key based on the sessionkey generation information, encrypting security information through thesession key; and transmitting the encrypted information to the secondelectronic device.
 15. The method of claim 14, wherein the receiving ofthe pairing key comprises: transmitting, to the second electronicdevice, when a first pairing request message is received from the secondelectronic device, a first pairing response message together with uniqueinformation of the electronic device; and storing, when the pairing keyis received from the second electronic device, the pairing key to belinked to the unique information of the electronic device.
 16. Themethod of claim 14, wherein the transmitting of the session keygeneration information comprises: generating a first random number andtransmitting the first random number to the second electronic device,when a second pairing request message is received from the secondelectronic device; generating, when a second random number and a firstauthentication key are received from the second electronic device, asecond authentication key based on the first random number, the secondrandom number, and the pairing key; and transmitting, to the secondelectronic device, when the first authentication key and the secondauthentication key are identical, a second pairing response messagetogether with the session key generation information.
 17. The method ofclaim 16, wherein, when the first authentication key and the secondauthentication key are identical, further comprising: generating thesession key based on the session key generation information.
 18. Themethod of claim 14, wherein the session key generation informationcomprises at least one of time stamp (Timestamp) information or countinformation.
 19. A method of an electronic device, the methodcomprising: transmitting, when a pairing key that registers a firstelectronic device as being linked to the electronic device, is receivedfrom a server device, the pairing key to the first electronic devicethat is connected over a first short-range communication; transmitting,to the server device, session key generation information received fromthe first electronic device; decoding, when a session key is receivedfrom the server device, encrypted security information that is receivedfrom the first electronic device, based on the session key; andtransmitting the decoded information to a third electronic device thatis connected over a second short-range communication.
 20. The method ofclaim 19, wherein the transmitting to the first electronic devicecomprises: transmitting a first pairing request message; transmitting,to the server device, when a first pairing response message is receivedtogether with unique information of the first electronic device, fromthe first electronic device, in response to the first pairing requestmessage, the unique information of the first electronic device togetherwith user information of the electronic device; and receiving thepairing key from the server device.
 21. The method of claim 19, whereinthe transmitting to the server device comprises: transmitting a secondpairing request message; transmitting, when a first random number isreceived from the first electronic device in response to thetransmission of the second pairing request message, the first randomnumber to the server device; transmitting, when a second random numberand a first authentication key are received from the server device, thesecond random number and the first authentication key to the firstelectronic device; and receiving the session key generation informationfrom the first electronic device.
 22. The method of claim 19, whereinthe session key generation information comprises at least one of timestamp information or count information.
 23. A secure connection methodof a server device, the method comprising: generating and storing, whenunique information of a first electronic device is received from anelectronic device, a pairing key for registering the first electronicdevice as being linked to the electronic device based on the uniqueinformation of the first electronic device, and transmitting the pairingkey to the electronic device; and generating a session key identical toa session key of the first electronic device based on the session keygeneration information, and transmitting the session key to theelectronic device, when session key generation information of the firstelectronic device is received from the electronic device.
 24. The methodof claim 23, wherein the transmitting of the pairing key to theelectronic device comprises: executing, when user information of theelectronic device and unique information of the first electronic deviceare received from the electronic device, authentication with respect tothe electronic device based on the user information of the electronicdevice; and generating and storing, when the authentication with respectto the electronic device is completed, the pairing key based on a masterkey corresponding to the unique information of the first electronicdevice.
 25. The method of claim 23, wherein the transmitting of thesession key to the electronic device comprises: generating, when a firstrandom number is received from the electronic device, a second randomnumber; generating a first authentication key based on the first randomnumber, the second random number, and the pairing key; transmitting thesecond random number and the first authentication key to the electronicdevice; and receiving session key generation information of the firstelectronic device from the electronic device.
 26. The method of claim23, wherein the session key generation information comprises at leastone of time stamp information or count information.
 27. At least onenon-transitory computer readable storage medium for storing a computerprogram of instructions configured to be readable by at least oneprocessor for instructing the at least one processor to execute acomputer process for performing the method of claim 14.